package ${classPath}.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxz.gblw.cjg.common.base.BaseWxzEntity;
import lombok.Data;
import java.util.Date;

/**
* ${description}
* @author ${author}
* @date ${date}
*/
@Data
@TableName("${table}")
public class ${model} extends BaseWxzEntity {
<#list fields as field>

    /**
    * ${field.remarks}
    */
    <#if field.originalType=="DATETIME">
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    </#if>
    <#if field.originalType=="DATE">
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    </#if>
    @TableField(value = "${field.originalName}")
    private ${field.type} ${field.name};
</#list>
}
